//
//  UICollectionView+JCollectionView.m
//  HeadIndustry
//
//  Created by jun on 2017/8/24.
//  Copyright © 2017年 jun. All rights reserved.
//

#import "UICollectionView+JCollectionView.h"

@implementation UICollectionView (JCollectionView)

+ (UICollectionView *)initWithCollectionView:(CGRect)frame withDelegate:(id)delegate
{
    UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc]init];
    UICollectionView *view = [[UICollectionView alloc]initWithFrame:frame collectionViewLayout:layout];
    view.delegate = delegate;
    view.dataSource = delegate;
    view.backgroundColor = [UIColor whiteColor];
    return view;
}

@end
